package com.gluck.cases.app.biz.impl.impl;

import com.github.pagehelper.PageInfo;
import com.gluck.cases.app.biz.impl.RolePermissionService;
import com.gluck.cases.core.block.RolePermissionBlock;
import com.gluck.cases.core.modal.entity.RolePermission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @ClassName RolePermissionServiceImpl
 * @Desc RolePermissionServiceImpl 实现类
 * @Author shiyongzhe
 * @Date 2022/5/22 - 3:18 下午
 **/
@Service
public class RolePermissionServiceImpl implements RolePermissionService {
    @Autowired
    private RolePermissionBlock rolePermissionBlock;

    @Override
    public PageInfo<RolePermission>  queryList(Integer startPage, Integer endPage) {
        PageInfo<RolePermission> pageInfo = rolePermissionBlock.selectByPagerHelper(startPage, endPage);
        return pageInfo;
    }
}
